package patrol.mobile.com.mobilepatrol.activity.security.adapter;

import android.content.Context;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.adapter.BaseViewHolder;

import java.util.List;

import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.bean.AvoidExplode1Bean;

/**
 * Created by K on 2018/9/11.
 * des:
 */
public class EmergencyAvoidExplodeInnerAdapter extends BaseQuickAdapter<AvoidExplode1Bean.EqListBean> {
    public EmergencyAvoidExplodeInnerAdapter(Context context) {
        super(context);
    }
//    public EmergencyAvoidExplodeInnerAdapter(Context context,List<String > data) {
//        super(context,data);
//    }
    @Override
    protected int attachLayoutRes() {
        return R.layout.item_emergency_avoid_explode_inner1_list;
    }

    @Override
    protected void convert(BaseViewHolder holder, AvoidExplode1Bean.EqListBean item) {

        holder.setText(R.id.tv_num,(holder.getLayoutPosition()+1)+"");
        holder.setText(R.id.tv_eqName,item.getEqName());
        holder.setText(R.id.tvNum,item.getNum());

    }
}
